package com.byron.media.server.model;

public class MediaData {

    private byte channel;       // 通道号   8 bit

    private byte type;          // 开始位 1、结束位 1、类型 4、终端类型 2    8 bit

    private long seq;            // 单元号  64 bit

    private int length;         // 数据长度  32 bit

    private boolean fromWireless;          // 是否来自无线终端

    private byte[] data;        // 数据

    public MediaData(byte channel, byte type, long seq, byte[] data, int length) {
        this.channel = channel;
        this.type = type;
        this.seq = seq;
        this.data = data;
        this.length = length;
    }

    public byte getChannel() {
        return channel;
    }

    public void setChannel(byte channel) {
        this.channel = channel;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public long getSeq() {
        return seq;
    }

    public void setSeq(long seq) {
        this.seq = seq;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public boolean isFromWireless() {
        return fromWireless;
    }

    public void setFromWireless(boolean fromWireless) {
        this.fromWireless = fromWireless;
    }
}
